import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { SheetFormInfoDto } from "@/api/sheet/platform/form/types";

/**
 * 查询控件维护列表
 * @param query
 * @returns {*}
 */

export const getSheetFormInfo = (sheetId: string | number, orderId: string | number): AxiosPromise<SheetFormInfoDto> => {
  return request({
    url: '/platform/form/getSheetFormInfo',
    params: {sheetId: sheetId, orderId: orderId},
    method: 'get'
  });
};


/**
 * 表单保存
 * @param data
 */
export const postFormData = (data: any) => {
  return request({
    url: '/platform/form/postFormData',
    method: 'post',
    data: data
  });
};



